home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 9675 / 9675.xpi / chrome / content / simpletimer-chrome.xul < prev    next >
Extensible Markup Language  |  2009-11-24  |  8KB  |  191 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <?xml-stylesheet href="chrome://simpletimer/content/simpletimer.css"
  6.                  type="text/css"?>
  7.  
  8. <?xml-stylesheet href="chrome://simpletimer/skin/simpletimer-toolbar.css"
  9.                  type="text/css"?>
  10.  
  11. <!DOCTYPE overlay SYSTEM "chrome://simpletimer/locale/simpletimer.dtd">
  12.  
  13. <overlay id="simtim-statbarTimer"
  14.          xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  15.  
  16. <script type="application/x-javascript"
  17.         src="chrome://global/content/nsDragAndDrop.js" />
  18.  
  19. <script type="application/x-javascript"
  20.         src="chrome://global/content/nsTransferable.js" />
  21.  
  22. <script type="application/x-javascript"
  23.         src="chrome://simpletimer/content/simpletimer-dragndrop.js" />
  24.  
  25. <script type="application/x-javascript"
  26.         src="chrome://simpletimer/content/simpletimer-chrome.js" />
  27.  
  28. <script type="application/x-javascript"
  29.         src="chrome://simpletimer/content/simpletimer-notify.js" />
  30.  
  31. <script type="application/x-javascript"
  32.         src="chrome://simpletimer/content/simpletimer-countdown.js" />
  33.  
  34. <script type="application/x-javascript"
  35.         src="chrome://simpletimer/content/simpletimer-sliderAlert.js" />
  36.  
  37. <script type="application/x-javascript"
  38.         src="chrome://simpletimer/content/simpletimer-eventLog.js" />
  39.  
  40. <script type="application/x-javascript"
  41.         src="chrome://simpletimer/content/simpletimer-fileIO.js" />
  42.  
  43. <script type="application/x-javascript"
  44.         src="chrome://simpletimer/content/simpletimer.js" />
  45.  
  46. <stringbundleset id="stringbundleset">
  47.     <stringbundle id="simtim-strings"
  48.                   src="chrome://simpletimer/locale/simpletimer.properties" />
  49. </stringbundleset>
  50.  
  51. <popupset id="mainPopupSet">
  52.     <menupopup id="simtim-menuPopup"
  53.                position="before_start">
  54.         <menuitem label="&menuitem.clock;"
  55.                   oncommand="SimpleTimer.clock();" />
  56.         <menuseparator />
  57.         <menuitem label="&menuitem.notify;"
  58.                   oncommand="SimpleTimer.notifyMe();" />
  59.         <menuseparator />
  60.         <menuitem label="&menuitem.countup;"
  61.                   oncommand="SimpleTimer.countUp();" />
  62.         <menuitem label="&menuitem.countdown;"
  63.                   oncommand="SimpleTimer.countDown();" />
  64.         <menuitem label="&menuitem.pauseResume;"
  65.                   oncommand="SimpleTimer.pauseResume();" />
  66.         <menuitem label="&menuitem.stop;"
  67.                   oncommand="SimpleTimer.stop();" />
  68.         <menuseparator />
  69.         <menuitem id="simtim-mitemKillHtmlAudio"
  70.                   label="&menuitem.kill.audio.alarm;"
  71.                   disabled="true"
  72.                   oncommand="SimpleTimer.pauseHtmlAudio();" />
  73.         <menuseparator />
  74.         <menuitem label="&menuitem.options;"
  75.                   oncommand="SimpleTimer.displayOptionsDlg();" />
  76.         <menuitem label="&menuitem.eventLog;"
  77.                   oncommand="SimpleTimer.displayEventLogDlg();" />
  78.         <menuitem label="&menuitem.homepage;"
  79.                   oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/');" />
  80.         <menu id="simtim-menuDocumentation"
  81.               label="&menu.documentation;">
  82.             <menupopup id="simtim-popupDocumentation">
  83.                 <menuitem label="&menuitem.clock;"
  84.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#Clock');" />
  85.                 <menuitem label="&menuitem.doc.notify;"
  86.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#Notify');" />
  87.                 <menuitem label="&menuitem.countup;"
  88.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#CountUp');" />
  89.                 <menuitem label="&menuitem.doc.countdown;"
  90.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#CountDown');" />
  91.                 <menuitem label="&menuitem.pauseResume;"
  92.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#PauseResume');" />
  93.                 <menuitem label="&menuitem.stop;"
  94.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#StopReset');" />
  95.                 <menuitem label="&menuitem.doc.options;"
  96.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#Options');" />
  97.                 <menuitem label="&menuitem.doc.eventLog;"
  98.                           oncommand="SimpleTimer.openLink('http://simpletimer.mozdev.org/#EventLog');" />
  99.             </menupopup>
  100.         </menu>
  101.         <menuitem label="&menuitem.about;"
  102.                   oncommand="SimpleTimer.displayAboutDlg();" />
  103.     </menupopup>
  104.  
  105.     <tooltip id="simtim-ttipDate"
  106.              position="before_start">
  107.         <description id="simtim-descTtipCurrDate0"
  108.                      value="" />
  109.     </tooltip>
  110.  
  111.     <tooltip id="simtim-ttipFull"
  112.              noautohide="true"
  113.              position="before_start">
  114.         <vbox id="simtim-vboxTtipFull">
  115.             <description id="simtim-descTtipCurrDate1"
  116.                          value="" />
  117.             <grid id="simtim-gridNotify">
  118.                 <columns>
  119.                     <column />
  120.                     <column />
  121.                 </columns>
  122.                 <rows>
  123.                 </rows>
  124.             </grid>
  125.             <grid id="simtim-gridCountdown">
  126.                 <columns>
  127.                     <column />
  128.                     <column />
  129.                 </columns>
  130.                 <rows>
  131.                 </rows>
  132.             </grid>
  133.             <description id="simtim-descTtipLastCountUp"
  134.                          value="" />
  135.             <description id="simtim-descTtipSessionTime"
  136.                          value="" />
  137.         </vbox>
  138.     </tooltip>
  139.  
  140.     <tooltip id="simtim-ttipCountdown"
  141.              noautohide="true"
  142.              position="before_start">
  143.         <grid id="simtim-gridTtipCountdown">
  144.             <columns>
  145.                 <column />
  146.                 <column />
  147.             </columns>
  148.             <rows>
  149.             </rows>
  150.         </grid>
  151.     </tooltip>
  152. </popupset>
  153.  
  154. <statusbar id="status-bar">
  155.     <statusbarpanel id="simtim-statpanelTimer"
  156.                     context="simtim-menuPopup"
  157.                     insertbefore="last"
  158.                     ondraggesture="nsDragAndDrop.startDrag(event, SimpleStatObserver);"
  159.                     onclick="SimpleTimer.onPanelClick(event);"
  160.                     onmouseover="SimpleTimer.setTooltip();"
  161.                     onmouseout="SimpleTimer.clearTooltip();">
  162.         <hbox>
  163.             <image id="simtim-statpanelImage"
  164.                    status="normal" />
  165.             <label id="simtim-statpanelLabel"
  166.                    class="statusbarpanel-text"
  167.                    collapsed="true" />
  168.         </hbox>
  169.     </statusbarpanel>
  170. </statusbar>
  171.  
  172. <toolbarpalette id="BrowserToolbarPalette">
  173.     <toolbaritem id="simtim-toolbarItem"
  174.                  align="center"
  175.                  context="simtim-menuPopup"
  176.                  onclick="SimpleTimer.onPanelClick(event);"
  177.                  onmouseover="SimpleTimer.setTooltip();"
  178.                  onmouseout="SimpleTimer.clearTooltip();">
  179.         <toolbarbutton id="simtim-toolbarButton"
  180.                        status="normal"
  181.                        class="toolbarbutton-1 chromeclass-toolbar-additional"
  182.                        label="SimpleTimer"/>
  183.         <hbox>
  184.             <label id="simtim-toolbarLabel"
  185.                    class="menubar-text"
  186.                    collapsed="true" />
  187.         </hbox>
  188.     </toolbaritem>
  189. </toolbarpalette>
  190.  
  191. </overlay>